<table width="100%" cellpadding="0" cellspacing="0" style="border:1px solid silver; background-color:#fefefe">
	<tr>
		<td>
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td width="70" style="border-right:1px solid silver " align="center"><input type="checkbox" onClick="checkboxStatus('ids',this.checked);"></td>
				<td width="33"  height="20" align="center"><img src="_tvs_system_core_/design/img/admin/_icon_delete.gif"></td>
				<td style="padding:0px 10px 0px 0px; border-right:1px solid silver"><a href="#" onClick="if (confirm('{t t='confirm_delete_many'}')) {ldelim}window.document.forms['child_list']['copys'].value=''; document.forms['child_list']['parent'].value=''; window.document.forms['child_list']['act'].value='del_form_mas'; document.forms['child_list'].submit(); return false;{rdelim}" target="_self"><nobr>{t t='Trinti pažymėtus elementus'}</a></td>
				<!-- *  -->
				<td style="  padding:0px 10px 0px 10px; ">{t t="Rodyti tik"}:</td>
				<td style="border-right:1px solid silver; ">
				<script language="javascript1.4" type="text/javascript">
					aBadWords=new Array("element_list_page_nr");
				</script>
				<select style="width:210px; margin:2px 20px 2px 0px " name="form_object_id" onChange="doTheFiltering(this,'form_object_id',aBadWords)">					
					<option value="-1" {if $smarty.get.form_name==$list_item.name} selected{/if}>{t t='Visos formos'}</option>
					{foreach from=$data.aditionalelements.list item="list_item"}
						{if $list_item.type=='block_form'}
						<option value="{$list_item.id}" {if $smarty.get.form_object_id==$list_item.id} selected{/if}>{$list_item.name}</option>
						{/if}
					{/foreach}							
				</select>		
				{*debug var=$data.aditionalelements*}					
				</td>				
				<!-- *  -->
  			{if $smarty.get.form_object_id && $smarty.get.form_object_id!=-1}
  			<td style="padding:0px 10px 0px 10px; border-right:1px solid silver;">
  				<a onClick="openCenteredOnOpenerWindow('index.php?admin=1&popup=17&form_object_id={$smarty.get.form_object_id}','filter_criteria',500,500,1,1); return false" href="#">{t t='Koreguoti filtrą'}</a>
  			</td>
    		{/if}
				<td style="padding:0px 10px 0px 10px; border-right:1px solid silver;">
			        <form action="{$_http_path}/index.php" method="POST" enctype="multipart/form-data" name="fFilter">
			        <input type="hidden" name="admin" value="1">
			        <input type="hidden" name="no-refresh" value="1">
			        <input type="hidden" name="filter_by_word" value="1">
			        <input type="text" class="defaultInputText" style="width: 80px;" name="query" value="{$smarty.session.query|default:$smarty.post.query|urldecode}" /> <input style="width: 80px;" type="submit" class="defaultFormButton" value="{t t='Filtruoti'}" />
			        </form>
				</td>
				<td style="border-right:1px solid silver; padding:0px 0px 0px 20px">				
				<select style="width:200px; margin:2px 20px 2px 0px " name="element_list_page_nr" onChange="doTheFiltering(this,'element_list_page_nr')">					
					{foreach from=$page_data.pages item="el"}
						<option value="{$el.number}" {if $page_data.current_page.number==$el.number} selected{/if}>{t t='Puslapis'} {$el.number} ({t t='nuo'} {math equation="x*y-y" x=$el.number y=$_var.filled_forms_per_page} {t t='iki'} {math equation="x*y" x=$el.number y=$_var.filled_forms_per_page})</option>
					{/foreach}
					<option value="-1" {if $smarty.get.element_list_page_nr==-1} selected{/if}>{t t="Viskas viename puslapyje"}</option>
				</select>								
				</td>
			</tr>
		</table>
		</td>		
	</tr>
</table>
